package com.fly.client.controller;

import com.fly.client.client.Client;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Fly
 * @Description
 * @Date Created in 15:28 2018/5/24
 * @Modified by
 */
@RestController
public class ClientController {

    private Logger logger = LogManager.getLogger(this.getClass());

    @Autowired
    private Client client;

    @GetMapping("/clientMsg")
    public String clientMsg(){
        String response = client.getMsg();
        logger.info("response:" + response);
        return response;
    }
}
